package edu.zjut.hjg.saas.biz.model;

import java.util.Date;

public class News {
    private Integer      id;
    private Kindergarten kindergarten = new Kindergarten();
    private String       title;
    private User         user         = new User();
    private String       content;
    private Date         createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Kindergarten getKindergarten() {
        return kindergarten;
    }

    public void setKindergarten(Kindergarten kindergarten) {
        this.kindergarten = kindergarten;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "News [content=" + content + ", createTime=" + createTime + ", id=" + id
                + ", kindergarten=" + kindergarten + ", title=" + title + ", user=" + user + "]";
    }
}
